package com.xnck.example.jertest.test;


public class UserProxyDao implements IUserDao {

    private IUserDao userDao;

    public UserProxyDao(IUserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void saveUser() {
        userDao.saveUser();
    }

    @Override
    public void editUser(String id) {
        System.out.println("在editUser之前");
        userDao.editUser(id);
        System.out.println("在editUser之后");
    }
}
